package cordoba.domain
{
    import flash.events.Event;
    import flash.events.EventDispatcher;
    
    import mx.collections.ArrayCollection;

    [Event(name="itemsChange", type="flash.events.Event")]
    public class AbstractItems extends EventDispatcher
    {
        public static const ITEMS_CHANGE:String = "itemsChange";
        
        private var _items:ArrayCollection = new ArrayCollection();
        
        [Bindable("itemsChange")]
        public function get items():ArrayCollection
        {
            return _items;
        }
        
        public function add(items:ArrayCollection):void
        {
            _items = items;
            dispatchEvent(new Event(ITEMS_CHANGE));
        }
    }
}